package com.junjie.springcloud.service;

import com.junjie.springcloud.entities.CommonResult;
import com.junjie.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author Yi Jun jie
 * @Date 2021/3/1 14:07
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSql(Long id) {
        return new CommonResult<Payment>(444, "服务降级返回------PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
